package model

import "gorm.io/gorm"

type Message struct {
	gorm.Model
	ForUserId int    `gorm:"type:int;not null;comment:'发送Id'" json:"for_user_id"`
	ToUserId  int    `gorm:"type:int;not null;comment:'接受Id'" json:"to_user_id"`
	Room      int    `gorm:"type:int;not null;comment:'聊天室'" json:"room"`
	Message   string `gorm:"type:varchar(225);not null;comment:'聊天内容'" json:"message"`
}
